<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>Welcome to xyyl-patient</title>
<script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
<!--公共方法-->
<script type="text/javascript" src="n/js/common/common.js"></script>
<script type="text/javascript" src="n/js/module/utilModule.js" ></script> 
<!--配置信息-->
<script type="text/javascript" src="n/js/common/config.js"></script>
</head>
<body>
<div align="center"  >
	<fieldset style="width:100%;font-size:12px" id="content" >
	  <legend>馨语医疗欢迎页</legend>
	  <button id="clearAll" onclick="javascript:localStorage.clear();" >清空localStorage缓存</button><br><br>
	  <span id="storageContent"></span><br><br>
	   <button id="restEaseCode" >重置环信账号[慎用]</button>
	</fieldset>
 </div>
</body>
<script>
$(function(){
var index_doctor =utilModule.getStorage("index_doctor");
	$("#storageContent").append("index_doctor       "+index_doctor);
	
	
	
	$("#storageContent").append("      openid:       "+utilModule.getStorage('openid'));
	$("#storageContent").append("      userid:       "+utilModule.getStorage('userid'));
	$("#storageContent").append("      userim:       "+utilModule.getStorage('userim'));
});

//重置环信账号
$("#restEaseCode").click(function(){
	utilModule.post({
		url : "homepage/restEasemobIm",
		data : {"openid":OPENID},
		needJson : false,
		async : false,
		success : function(response) {
			if(response==-1){
			   alert("环信账号已存在,重置失败!");	
			}else{
			  alert("重置成功:"+response);
			}
		}
	});
});

</script>


</html>